Towards Cohesion-based Metrics as Early Quality Indicators of Faulty Classes and Components

نویسندگان

  • Chuan Ho Loh
  • Sai Peck Lee
چکیده

Measuring structural design properties of an object-oriented system is a promising approach towards early quality assessments. In object-oriented systems, cohesion is an important factor of objectoriented design quality. A few researchers refer cohesion to the degree of the relatedness of the members in a class. In an object-oriented system, classes and components are key early artifacts that lay the foundation of an object-oriented system. A few cohesion metrics have been proposed to quantify the cohesiveness of classes in an object-oriented system. In this paper, we attempt to quantify the amount of cohesion in classes and components via a suite of object-oriented design metrics. This paper proposes four object-oriented design metrics to evaluate cohesion at the class and component level. The metrics are augmented based on different definitions of LCOM. The metrics are normalized to produce values in the range [0..1], thus yielding more meaningful values than other cohesion metrics such as LCOM1 and LCOM4. The proposed metrics attempt to evaluate whether an artifact (i.e. class or component) represents one abstraction (good) or multiple abstractions (bad). If the artifact represents multiple abstractions, it should be split up into multiple artifacts (i.e. classes and components).

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Transitive Coupling (TC) and Fault Proneness (FP) in Object Oriented Systems: A New Methodology

Demand for Quality Software has undergone with rapid growth during the last few years. This is leading to an increase in the development of metrics for measuring the properties of software such as Coupling, Cohesion or Inheritance that can be used in early quality assessments. Quality Models that explore the relationship between these properties and quality attributes such as fault proneness, m...

متن کامل

Investigating effect of Design Metrics on Fault Proneness in Object-Oriented Systems

Demand for quality software has undergone with rapid growth during the last few years. This is leading to an increase in the development of metrics for measuring the properties of software such as coupling, cohesion or inheritance that can be used in early quality assessments. Quality models that explore the relationship between these properties and quality attributes such as fault proneness, m...

متن کامل

Improving the applicability of object-oriented class cohesion metrics

Context: Class cohesion is an important object-oriented quality attribute. It refers to the degree of relatedness between the methods and attributes of a class. Several metrics have been proposed to measure the extent to which the class members are related. Most of these metrics have undefined values for a relatively high percentage of classes, which limits their applicability. The classes that...

متن کامل

The impact of accounting for special methods in the measurement of object-oriented class cohesion on refactoring and fault prediction activities

Class cohesion is a key attribute that is used to assess the design quality of a class, and it refers to the extent to which the attributes and methods of the class are related. Typically, classes contain special types of methods, such as constructors, destructors, and access methods. Each of these special methods has its own characteristics, which can artificially affect the class cohesion mea...

متن کامل

Fault prediction and the discriminative powers of connectivity-based object-oriented class cohesion metrics

Context: Several metrics have been proposed to measure the extent to which class members are related. Connectivity-based class cohesion metrics measure the degree of connectivity among the class members. Objective: We propose a new class cohesion metric that has higher discriminative power than any of the existing cohesion metrics. In addition, we empirically compare the connectivity and non-co...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011